package com.lq.educationsystem.common.vo;

import lombok.Data;

import java.util.Objects;

@Data
public class StudentExaminationPageVo {
    /**
     * 学生考试id
     */
    private Integer studentExaminationId;

    /**
     * 考试id
     */
    private Integer examinationId;

    /**
     * 学生考试id
     */
    private Integer studentId;

    /**
     * 学生考试状态 1 考试  0缺考
     */
    private Object examinationStatus;

    /**
     * 页面大小
     */
    private Integer pageSize;

    /**
     * 当前页数
     */
    private Integer page;

    private static final long serialVersionUID = 1L;


    @Override
    public String toString() {
        return "StudentExaminationPageVo{" +
                "studentExaminationId=" + studentExaminationId +
                ", examinationId=" + examinationId +
                ", studentId=" + studentId +
                ", examinationStatus=" + examinationStatus +
                ", pageSize=" + pageSize +
                ", page=" + page +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        StudentExaminationPageVo that = (StudentExaminationPageVo) o;
        return Objects.equals(studentExaminationId, that.studentExaminationId) && Objects.equals(examinationId, that.examinationId) && Objects.equals(studentId, that.studentId) && Objects.equals(examinationStatus, that.examinationStatus) && Objects.equals(pageSize, that.pageSize) && Objects.equals(page, that.page);
    }

    @Override
    public int hashCode() {
        return Objects.hash(studentExaminationId, examinationId, studentId, examinationStatus, pageSize, page);
    }
}
